<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8" />
    <title>赋值运算符</title>
    <script>
        /* var num1 = 10;
        var num2 = num1;
        console.log(num1);
        console.log(num2); */

        // += -= *= /= %=
        var num1 = 10;
        var num2 = 20;
        num1 += num2; //num1 = num1 + num2;
        console.log(num1);

    </script>
</head>

<body>
</body>